package thread.threaddemo;

/**
 * @Author: wenjingyuan
 * @Date: 2022/11/01/20:38
 * @Description:lambda表达式
 */
public class ThreadDemo6 {
    public static void main(String[] args) {
        //创建线程
        Thread thread=new Thread(()->{
            System.out.println("执行的线程为"+Thread.currentThread().getName());
        });
        //启动线程
        thread.start();
    }
}
